﻿// Seekread.cpp: 实现文件
//

#include "pch.h"
#include "library.h"
#include "afxdialogex.h"
#include "Seekread.h"


// Seekread 对话框

IMPLEMENT_DYNAMIC(Seekread, CDialogEx)

Seekread::Seekread(CWnd* pParent /*=nullptr*/)
	: CDialogEx(IDD_Seek, pParent)
	, r_name(_T(""))
{

}

Seekread::~Seekread()
{
}

void Seekread::DoDataExchange(CDataExchange* pDX)
{
	CDialogEx::DoDataExchange(pDX);
	DDX_Text(pDX, IDC_EDIT1, r_name);
}


BEGIN_MESSAGE_MAP(Seekread, CDialogEx)
	ON_BN_CLICKED(IDOK, &Seekread::OnBnClickedOk)
END_MESSAGE_MAP()


// Seekread 消息处理程序


void Seekread::OnBnClickedOk()
{
	// TODO: 在此添加控件通知处理程序代码

	UpdateData(TRUE);
	if (r_name == TEXT("")) {
		MessageBox(TEXT("您的输入为空"), TEXT("提示"));
	}
	CDialogEx::OnOK();
}
